package com.wsm.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsm.blog.domain.ContentDO;

import java.util.List;
import java.util.Map;

/**
 * 文章内容
 *
 * @author wangshimin
 * @email wangshiminhome@foxmail.com
 * @date 2020-02-14 14:00:46
 * @description : 文章内容
 */
public interface ContentMapper extends BaseMapper<ContentDO> {

	List<ContentDO> list(Map<String, Object> map);

	List<ContentDO> listNotHaveContent(Map<String, Object> map);

	int count(Map<String, Object> map);

	int orSave(ContentDO content);

	int orUpdate(ContentDO content);

	int remove(Long cid);

	int batchRemove(Long[] cids);

	int removeOrDel(Long cid);

	int batchRemoveOrDel(Long[] cids);

}
